<?php
//获取最小值的函数，并调用
echo min(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
echo "<br>";
function min1($a, $b)
{
//三元运算符
//return $a<$b?$a:$b;
    if ($a < $b) {
        return $a;
    } else {
        return $b;
    }
}
echo min1(3, 2);
echo "<br>";
//获取最大值的函数，并调用
function max1($a, $b)
{
//三元运算符
//return $a>$b?$a:$b;
    if ($a > $b) {
        return $a;
    } else {
        return $b;
    }
}
echo max1(3, 20);
echo "<br>";
echo max(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
echo "<br>";


